
from django.contrib import admin
from models import *
class ComputerAdmin(admin.ModelAdmin):
    fields = ['name', 'ip_address', 'ip_type']
class DepartamentAdmin(admin.ModelAdmin):
    fields = ['name']
class ComputerUserAdmin(admin.ModelAdmin):
    fields = ['name', 'departament', 'computer']

admin.site.register(Computer, ComputerAdmin)
admin.site.register(Departament, DepartamentAdmin)
admin.site.register(ComputerUser, ComputerUserAdmin)
